#include <iostream>
#include <stdlib.h>
#include <unistd.h>

#include <Serializable.h>

using namespace std;

int main (int argc, char* argv[])
{
      ObjectSerializable obj;
      
      obj.AddAttribute("at1","1aklsdjfaksasdfjaskldjfklasd");
      obj.AddAttribute("at2","9808080800");
	  ssize_t size = obj.getSize();
      
      
      char* bytes = obj.Serialize();
      
      ObjectSerializable ob2(bytes, size);
      string value1 = ob2.GetAttribute("at1");
      string value2 = ob2.GetAttribute("at2");
      
      std::cout << "value 1 = " << value1 << std::endl;
      std::cout << "value 2 = " << value2 << std::endl;
      
      return 0;
}